<?php

namespace mbilling\BillingBundle\DependencyInjection;

use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\Config\FileLocator;

class BillingExtension extends Extension
{
    public function load(array $configs, ContainerBuilder $container) {
        // create a yaml file loader in the Resources/config/ folder
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        // load the services.yml file
        $loader->load('services.yml');
    }
 
    public function getAlias() {
        return 'billing';
    }

}
